#0 [10501]PDOException in PDOConnection.php line 836

SQLSTATE[HY000] [2002] Connection refused

  1. } else {
  2. if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
  3. $this->reConnectTimes++;
  4. return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
  5. }
  6. }
  7. if ($e instanceof \PDOException) {
  8. throw new PDOException($e, $this->config, $this->getLastsql());
  9. } else {
  10. throw $e;
  11. }
  12. }
  13. }
  14. /**
  15. * 执行语句.
  16. *

Call Stack

  1. in PDOConnection.php line 836
  2. at PDOConnection->getPDOStatement() in PDOConnection.php line 746
  3. at PDOConnection->pdoQuery() in PDOConnection.php line 923
  4. at PDOConnection->find() in BaseQuery.php line 1462
  5. at BaseQuery->find() in AuthService.php line 192
  6. at AuthService->getAdminInfo() in AuthService.php line 76
  7. at AuthService->__construct() in BaseController.php line 48
  8. at BaseController->__construct()
  9. at ReflectionClass->newInstanceArgs() in Container.php line 396
  10. at Container->invokeClass() in Container.php line 253
  11. at Container->make() in Controller.php line 187
  12. at Controller->controller() in Controller.php line 74
  13. at Controller->exec() in Dispatch.php line 52
  14. at Dispatch->run() in Route.php line 755
  15. at Route->think\{closure}() in Pipeline.php line 59
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Route.php line 756
  18. at Route->dispatch() in Http.php line 208
  19. at Http->dispatchToRoute() in Http.php line 198
  20. at Http->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in MultiApp.php line 51
  22. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in MultiApp.php line 52
  25. at MultiApp->handle()
  26. at call_user_func() in Middleware.php line 134
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in SessionInit.php line 58
  29. at SessionInit->handle()
  30. at call_user_func() in Middleware.php line 134
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in Pipeline.php line 66
  33. at Pipeline->then() in Http.php line 199
  34. at Http->runWithRequest() in Http.php line 162
  35. at Http->run() in index.php line 25

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 2002
Driver Error Message Connection refused
Database Status
Error Code 10501
Error Message SQLSTATE[HY000] [2002] Connection refused
Error SQL
Database Config
type mysql
hostname 127.0.0.1
database 16757com
hostport 3306
dsn
params []
charset utf8
prefix wdphp_
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
fields_cache true
trigger_sql true
builder
query
break_reconnect false
break_match_str []
auto_param_bind true
schema_cache_path /www/wwwroot/www.16757.com/runtime/schema/

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_FORWARDED_FOR 220.181.57.216
HTTP_CLIENT_IP 220.181.57.216
HTTP_REFERER //so/%E3%80%90%E5%B0%BE%E8%B4%A7%E6%9C%BA%E3%80%91%E5%A4%8F%E6%96%B0%EF%BC%88Amoi%EF%BC%89AMOI%E5%8D%8A%E5%85%A8%E8%87%AA%E5%8A%A8%E6%B4%97%E8%A1%A3%E6%9C%BA%E5%A4%A7%E5%AE%B9%E9%87%8F%E5%AE%B6%E7%94%A8%E5%AE%BF%E8%88%8D%E5%8F%8C%E7%BC%B8%E5%8F%8C%E6%A1%B6%E7%94%A9%E5%B9%B2%E9%A3%8E%E5%B9%B2%E7%9C%81%E6%B0%B4%E7%9C%81%E7%94%B5%E3%80%90%E5%93%81%E8%B4%A8%E5%AE%B6%E7%94%B5%E3%80%91%2012%E5%85%AC%E6%96%A4%E3%80%90%E7%8E%BB%E7%92%83%E7%9B%96%E3%80%91%E5%8A%A0%E5%8E%9A%E5%BC%BA%E5%8A%A8%E5%8A%9B+%E8%93%9D%E5%85%89.html
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
PATH_INFO
HTTP_HOST www.16757.com
REDIRECT_STATUS 200
SERVER_NAME www.16757.com
SERVER_PORT 443
SERVER_ADDR 103.26.78.158
REMOTE_PORT 46258
REMOTE_ADDR 47.76.153.81
SERVER_SOFTWARE nginx/1.27.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.16757.com/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/www.16757.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1731464016.2406
REQUEST_TIME 1731464016